package com.heatup.apt.common.constants;

import com.heatup.apt.common.util.StringUtil;

/**
 * 教练相关常量
 */
public class CoachConstants {


	/**
	 * 教练状态
	 */
	public enum CoachStatus {
		online(1, "1", "已上线"),
		inserting_winding(2, "2", "已下线"),
		deleted(3, "3", "已删除");

		private int index;
		private String status;
		private String title;

		CoachStatus(int index, String status, String title) {
			this.index = index;
			this.status = status;
			this.title = title;
		}

		public static CoachStatus getCoachStatus(String status) {
			if (StringUtil.isEmpty(status))
				return null;
			for (CoachStatus coachStatus : CoachStatus.values()) {
				if (StringUtil.isEquals(coachStatus.getStatus(), status)) {
					return coachStatus;
				}
			}
			return null;
		}

		public int getIndex() {
			return index;
		}

		public void setIndex(int index) {
			this.index = index;
		}

		public String getStatus() {
			return status;
		}

		public void setStatus(String status) {
			this.status = status;
		}

		public String getTitle() {
			return title;
		}

		public void setTitle(String title) {
			this.title = title;
		}
	}


	public enum CoachSupportStatus {

	    SUPPORT(1,"支持"),
	    UN_SUPPORT(2,"不支持");

        private int index;

	    private String title;

        CoachSupportStatus(int index, String title) {
            this.index = index;
            this.title = title;
        }

        public int getIndex() {
            return index;
        }

        public void setIndex(int index) {
            this.index = index;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }
    }
}
